﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
	<meta http-equiv="Cache-Control" content="no-siteapp"/>
	<link rel="Bookmark" href="imgs/bai.ico">
	<link rel="Shortcut Icon" href="imgs/bai.ico"/>
	<link rel="stylesheet" type="text/css" href="css/static/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="css/static/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="css/lib/iconfont.css" />
	<!--<link rel="stylesheet" type="text/css" href="css/static/skin.css" id="skin"/>-->
	<link rel="stylesheet" type="text/css" href="css/views.css" />
	<title>系统后台</title>
	<style type="text/css">
		.Hui-aside::-webkit-scrollbar {/*滚动条整体样式*/
			width: 5px;     /*高宽分别对应横竖滚动条的尺寸*/
			height: 1px;
		}
		.Hui-aside::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
			border-radius: 5px;
			-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
			background: #ccc;
			cursor: pointer;
		}
		.Hui-aside::-webkit-scrollbar-track {/*滚动条里面轨道*/
			-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
			border-radius: 5px;
			background: #EDEDED;
		}
	</style>
</head>
<body>
	<!-- header头部 -->
	<header class="navbar-wrapper" id="navHeader"></header>
	
	<!-- 左侧菜单 -->
	<aside class="Hui-aside" id="leftMenu"></aside>
	
	<!--右侧内容框架-->
	<section class="Hui-article-box">
		<iframe src="views/index.html" frameborder="no"></iframe>
	</section>
</body>
</html>


<script type="text/javascript" src="js/lib/jquery.min.js"></script> 
<script type="text/javascript" src="js/lib/layer.js"></script>
<script type="text/javascript" src="js/static/H-ui.js"></script> 
<script type="text/javascript" src="js/static/H-ui.admin.page.js"></script> 
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/view.js"></script>
<script type="text/javascript">
	var cw = document.documentElement.clientWidth;
	var ch = document.documentElement.clientHeight;
	(function () {
		isLogin();
		getHeader();
		getLeftMenu();
		getIframe();
	})();
	//框架样式
	function getIframe(){
		var lmDiv = $('#leftMenu');
		$('iframe').width(cw-lmDiv.width()).height(ch-60);
		lmDiv.height(ch-60);
	}
	//看看是否登录
	setInterval("isLogin()", 1000*10);
	function isLogin(){
		var ymd = currYmd();
		var adminInfo = getAdminInfo();
		console.log(ymd, adminInfo);
		if (!adminInfo) {
			msgPop({msg: '未登录或登录已过期'});
			window.location.href = '/login.html'
		}
		if (adminInfo && adminInfo.currYmd < ymd) {
			msgPop({msg: '未登录或登录已过期'});
			window.location.href = '/login.html'
		}
	}
</script>